﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WCFTimesheetService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together.
    public class ValidateTimesheet : IValidateTimesheet
    {
        
        public string ValidateTimesheetFunc(string inData)
        {
            string returnstring = "";
            returnstring = exampleone();
            //return string.Format("You entered: {0}", inData);
            //returnstring = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><string xmlns=\"http://tempuri.org/\">" + returnstring + "</string>";
            return returnstring;
        }

        private string exampleone()
        {
            return "<errors><error>This is my first timesheet error</error></errors>";
        }

    }
}
